const _my = require("../../__antmove/api/index.js")(my);
const wx = _my;
// 获取应用实例
var app = getApp();
Page({
  timeOut: null,
  data: {
    motto: "环信即时通讯云",
    userInfo: {},
    login: false
  },
  // 事件处理函数
  bindViewTap: function () {
    clearTimeout(this.timeOut);
    wx.redirectTo({
      url: "../login/login"
    });
  },
  onLoad: function () {
    var me = this;
    this.timeOut = setTimeout(function () {
      wx.redirectTo({
        url: "../login/login"
      });
    }, 3000);
    // 调用应用实例的方法获取全局数据
    app.getUserInfo(function (userInfo) {
      // 更新数据
      me.setData({
        userInfo: userInfo
      });
    });
  },
  antmoveAction: function () {
    //执行时动态赋值，请勿删除
  }
});